﻿#ifndef SERIALPORTSET_H
#define SERIALPORTSET_H

#include <QDialog>
#include <QSerialPortInfo>

namespace Ui {
class serialportset;
}

class serialportset : public QDialog
{
    Q_OBJECT

public:
    explicit serialportset(QWidget *parent = nullptr);
    ~serialportset();

    void setUartInfoList(QList<QSerialPortInfo> portInfoList);

signals:
    void  selectPort(int nUartIdx, int nPort);

private slots:
    void on_btn_ok_clicked();

private:
    Ui::serialportset *ui;
};

#endif // SERIALPORTSET_H
